import Vue from 'vue'
import Router from 'vue-router'
import views from './views';
import appointment from './appointment';
import members from './members';
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  base: '/dist/',
  mode:'history',
  routes: [
    ...views,
    ...appointment,
    ...members,
    {
      path: '/index',
      name: 'index',
      component: ()=>import('@/views/index/index'),
      meta: {
        title: '首页'
      }
    },
    {
      path: '/author',
      name: 'author',
      component: ()=>import('@/views/author/author'),
      meta: {
        title: '微信授权'
      }
    },
  ]
})
